// 实现apply
Function.prototype._apply = function(thisArg, args) {
    let Fun = Symbol()
    thisArg[Fun] = this
    thisArg[Fun](...args)
}

function getName(msg1,msg2){
    console.log('name=', this.name, msg1, msg2)
}

getName._apply({name: '张三'}, ['hahaha','lalala'])

// 对象中有Fun方法
let obj = {
    name:'李四',
    Fun(){
        console.log('对象中的Fun方法没有被覆盖')
    }
}
getName._apply(obj,['hahaha', 'lalala'])
obj.Fun()